﻿using CPPEI.Coolzon.UI.Views;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;

namespace CPPEI.Coolzon.Designer.Views
{
    public partial class DesignView
    {
        /// <summary>
        /// 主框架缩放事件
        /// </summary>
        /// <param name="oldFactor"></param>
        /// <param name="newFactor"></param>
        void _ctlMainFrame_Zoom(double oldFactor, double newFactor)
        {
            if (_ctlDesignBorder.Visibility == System.Windows.Visibility.Visible)
            {
                ShowDesignBorder(_selectedPart, this._ctlCanvas);
            }

            UpdateUI_ZoomFactorList();
            SetScrollBar();
            ScrollToSelected(_selectedPart);
            _ShowHLBorder4Part(null);
        }
    }
}
